package org.ssssssss.example.cmp;

import com.yomahub.liteflow.core.NodeComponent;
import com.yomahub.liteflow.slot.DefaultContext;
import org.springframework.stereotype.Component;
import org.ssssssss.example.bean.OrderContext;

@Component("b")
public class BCmp extends NodeComponent {

    @Override
    public void process() {
        //do your business
        OrderContext order = this.getCmpData(OrderContext.class);
        System.out.println("order = " + order);
        DefaultContext context = this.getFirstContextBean();
        context.setData("order", order);
        System.out.println("BCmp executed!");
    }
}
